<template>
  <div id="app">
    <CartList :fatData="list"></CartList>
    <CartFooter></CartFooter>
  </div>
</template>
<script>
//注册组件
import CartList from '@/components/Cart-list'
import CartFooter from '@/components/Cart-footer'
//导入json数据
import data from '@/assets/data.json'
// console.log(data)
export default {
  name: 'Day12App',
  components:{
    CartList,CartFooter
  },

  data() {
    return {
      list:data
    };
  },
  created () {
    // console.log(this.list)
  },
  mounted() {
    
  },

  methods: {
    
  },
};
</script>